package beautiful.butterfly.drds.datasource.connection_contexts.mock;

import beautiful.butterfly.drds.datasource.connection_contexts.api.IConnectionContext;
import beautiful.butterfly.drds.datasource.connection_contexts.api.IConnectionContexts;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;


public class ConnectionContexts implements IConnectionContexts {
    public IConnectionContext getConnectionContext() throws SQLException {
        Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1/qq", "root", "");
        IConnectionContext connectionContext = new ConnectionContext(connection);
        return connectionContext;
    }
}
